import { postAxios, getAxios, postDownloadAxios } from '@/lib/http';

export const usersApi = {
    // 添加微信小程序 用户信息表 @author wuqian
    addUsers: (data) => {
        return postAxios('/users/add', data);
    },
    // 分页查询微信小程序 用户信息表 @author wuqian
    queryUsers: (data) => {
        return postAxios('/users/page/query', data);
    },
    // 批量删除微信小程序 用户信息表 @author wuqian
    batchDeleteUsers: (idList) => {
        return postAxios('/users/deleteByIds', idList);
    },
    // 修改微信小程序 用户信息表  @author wuqian
    updateUsers: (data) => {
        return postAxios('/users/update',data);
    },
    // 导出全部  @author wuqian
    exportAll:(data)=>{
        return postDownloadAxios('/users/export/all',data);
    },
    // 批量导出  @author wuqian
    batchExport: (idList) => {
        return postDownloadAxios('/users/export/batch', idList);
    },
};
